package cn.stylefeng.guns.modular.lx.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.lx.entity.LxGoodsLike;
import cn.stylefeng.guns.modular.lx.model.params.LxGoodsLikeParam;
import cn.stylefeng.guns.modular.lx.model.result.LxGoodsLikeResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品表----like 服务类
 * </p>
 *
 * @author like
 * @since 2023-12-20
 */
public interface LxGoodsLikeService extends IService<LxGoodsLike> {

    /**
     * 新增
     *
     * @author like
     * @Date 2023-12-20
     */
    void add(LxGoodsLikeParam param);

    /**
     * 删除
     *
     * @author like
     * @Date 2023-12-20
     */
    void delete(LxGoodsLikeParam param);

    /**
     * 更新
     *
     * @author like
     * @Date 2023-12-20
     */
    void update(LxGoodsLikeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author like
     * @Date 2023-12-20
     */
    LxGoodsLikeResult findBySpec(LxGoodsLikeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author like
     * @Date 2023-12-20
     */
    List<LxGoodsLikeResult> findListBySpec(LxGoodsLikeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author like
     * @Date 2023-12-20
     */
     LayuiPageInfo findPageBySpec(LxGoodsLikeParam param,String condition);

    ResponseData upInve(int id);
}
